package com.dylan.历史.eventbus;

import com.google.common.eventbus.Subscribe;

/**
 * @author : ankang
 * @date : 2020/12/12 14:25
 * @Description :
 */
public class EventListener {

    private String flag;

    public EventListener(String flag) {
        this.flag = flag;
    }

    @Subscribe
    public void listener(MyEvent myEvent) {
        myEvent.handle(flag);
    }
}
